#ifndef video_algo_sim
#define VIDEO_ALGO_SIM

#include <string.h>

#include <iostream>
#include <stdio.h>
#include <stdarg.h>
#include <chrono>
#include <thread>
#include "../utils/log.h"

int myRandom(int min, int max) {
    int base = max - min;
    return ((int)(get_sys_secend() * 1000 * 1000) % base) + min;
}

int FacebeautyProcessSim(int frameId = 0) {
    std::this_thread::sleep_for(std::chrono::milliseconds(myRandom(20, 50)));
    return 0;
}


int SlimbeautyProcessSim(int frameId = 0) {
    std::this_thread::sleep_for(std::chrono::milliseconds(myRandom(20, 50)));
    return 0;
}

int fullPipe(int frameId = 0) {
    TRACE_B("frameId:%d", frameId);
    // TRACE_B();
    FacebeautyProcessSim();
    SlimbeautyProcessSim();
    return 0;
}
#endif /* video_algo_sim */
